﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000495 RID: 1173
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EnterTrialActivityStageScRsp : IMessage<EnterTrialActivityStageScRsp>, IMessage, IEquatable<EnterTrialActivityStageScRsp>, IDeepCloneable<EnterTrialActivityStageScRsp>, IBufferMessage
	{
		// Token: 0x17000F19 RID: 3865
		// (get) Token: 0x060034D3 RID: 13523 RVA: 0x0009125F File Offset: 0x0008F45F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EnterTrialActivityStageScRsp> Parser
		{
			get
			{
				return EnterTrialActivityStageScRsp._parser;
			}
		}

		// Token: 0x17000F1A RID: 3866
		// (get) Token: 0x060034D4 RID: 13524 RVA: 0x00091266 File Offset: 0x0008F466
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EnterTrialActivityStageScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000F1B RID: 3867
		// (get) Token: 0x060034D5 RID: 13525 RVA: 0x00091278 File Offset: 0x0008F478
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EnterTrialActivityStageScRsp.Descriptor;
			}
		}

		// Token: 0x060034D6 RID: 13526 RVA: 0x0009127F File Offset: 0x0008F47F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterTrialActivityStageScRsp()
		{
		}

		// Token: 0x060034D7 RID: 13527 RVA: 0x00091288 File Offset: 0x0008F488
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterTrialActivityStageScRsp(EnterTrialActivityStageScRsp other) : this()
		{
			this.battleInfo_ = ((other.battleInfo_ != null) ? other.battleInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x060034D8 RID: 13528 RVA: 0x000912D4 File Offset: 0x0008F4D4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterTrialActivityStageScRsp Clone()
		{
			return new EnterTrialActivityStageScRsp(this);
		}

		// Token: 0x17000F1C RID: 3868
		// (get) Token: 0x060034D9 RID: 13529 RVA: 0x000912DC File Offset: 0x0008F4DC
		// (set) Token: 0x060034DA RID: 13530 RVA: 0x000912E4 File Offset: 0x0008F4E4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneBattleInfo BattleInfo
		{
			get
			{
				return this.battleInfo_;
			}
			set
			{
				this.battleInfo_ = value;
			}
		}

		// Token: 0x17000F1D RID: 3869
		// (get) Token: 0x060034DB RID: 13531 RVA: 0x000912ED File Offset: 0x0008F4ED
		// (set) Token: 0x060034DC RID: 13532 RVA: 0x000912F5 File Offset: 0x0008F4F5
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x060034DD RID: 13533 RVA: 0x000912FE File Offset: 0x0008F4FE
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EnterTrialActivityStageScRsp);
		}

		// Token: 0x060034DE RID: 13534 RVA: 0x0009130C File Offset: 0x0008F50C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EnterTrialActivityStageScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.BattleInfo, other.BattleInfo) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x060034DF RID: 13535 RVA: 0x0009135C File Offset: 0x0008F55C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.battleInfo_ != null)
			{
				num ^= this.BattleInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x060034E0 RID: 13536 RVA: 0x000913B1 File Offset: 0x0008F5B1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x060034E1 RID: 13537 RVA: 0x000913B9 File Offset: 0x0008F5B9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x060034E2 RID: 13538 RVA: 0x000913C4 File Offset: 0x0008F5C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.battleInfo_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.BattleInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x060034E3 RID: 13539 RVA: 0x00091420 File Offset: 0x0008F620
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.battleInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.BattleInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x060034E4 RID: 13540 RVA: 0x00091478 File Offset: 0x0008F678
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EnterTrialActivityStageScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.battleInfo_ != null)
			{
				if (this.battleInfo_ == null)
				{
					this.BattleInfo = new SceneBattleInfo();
				}
				this.BattleInfo.MergeFrom(other.BattleInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x060034E5 RID: 13541 RVA: 0x000914E0 File Offset: 0x0008F6E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x060034E6 RID: 13542 RVA: 0x000914EC File Offset: 0x0008F6EC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 10U)
				{
					if (num != 72U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Retcode = input.ReadUInt32();
					}
				}
				else
				{
					if (this.battleInfo_ == null)
					{
						this.BattleInfo = new SceneBattleInfo();
					}
					input.ReadMessage(this.BattleInfo);
				}
			}
		}

		// Token: 0x040014B6 RID: 5302
		private static readonly MessageParser<EnterTrialActivityStageScRsp> _parser = new MessageParser<EnterTrialActivityStageScRsp>(() => new EnterTrialActivityStageScRsp());

		// Token: 0x040014B7 RID: 5303
		private UnknownFieldSet _unknownFields;

		// Token: 0x040014B8 RID: 5304
		public const int BattleInfoFieldNumber = 1;

		// Token: 0x040014B9 RID: 5305
		private SceneBattleInfo battleInfo_;

		// Token: 0x040014BA RID: 5306
		public const int RetcodeFieldNumber = 9;

		// Token: 0x040014BB RID: 5307
		private uint retcode_;
	}
}
